package com.njtoyo.taxi.admin.rest.wrapper.business.driver;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "指定司机推广记录")
public class DriverRecommendationQueryWrapper extends Page<DriverRecommendationQueryWrapper> {
    public DriverRecommendationQueryWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "是否激活")
    private Boolean isActive;

    @ApiModelProperty(value = "是否正常推广")
    private Boolean isValid;

    @ApiModelProperty(value = "推广乘客")
    private String customerSearch;

}
